
import {createRouter,createWebHashHistory} from "vue-router";
import definePropsAndEmits from "../views/definePropsAndEmits/Index.vue";
import defineExpose from "../views/defineExpose/Index.vue";
import useSlotsAndUseAttrs from "../views/useSlotsAndUseAttrs/Index.vue";
import toRefAndRefs from "../views/toRefAndRefs.vue";
import Lifycle from "../views/Lifycle.vue";
import ProvideAndInject from "../views/ProvideAndInject/Index.vue";
import compositionFun from "../views/compositionFun/Index.vue";
import xiangyingshi from "../views/xiangyingshi.vue";


export default createRouter({
    history:createWebHashHistory(),
    routes:[
        {
            path:"/",
            redirect:"/definePropsAndEmits"
        },
        {
            path:"/definePropsAndEmits",
            component:definePropsAndEmits
        },
        {
            path:"/defineExpose",
            component:defineExpose
        },
        {
            path:"/useSlotsAndUseAttrs",
            component:useSlotsAndUseAttrs
        },
        {
            path:"/toRefAndRefs",
            component:toRefAndRefs
        }  ,
        {
            path:"/Lifycle",
            component:Lifycle
        } ,
        {
            path:"/ProvideAndInject",
            component:ProvideAndInject
        },
        {
            path:"/compositionFun",
            component:compositionFun
        },
        {
            path:"/xiangyingshi",
            component:xiangyingshi
        }
    ]
})